package com.lgj.demo0812.TestDemo;

public class B extends A{
        private String nameB="B";

        @Override
        public void getName() {
            System.out.println("子类"+nameB);
//            super.getName();
            this.getName();
        }

        public static void main(String[] args) {
            B b=new B();
            b.getName();

        }
    }